<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: auto;
            text-align: center;
        }

    </style>
</head>
<body>
    <table border="1" align="center">
        <thead>现有权限如下，请点击修改！</thead>
        <tr>
            <td><input type="checkbox"></td>
            <td>权限</td>
            <td>功能</td>
        </tr>
        <tr th:each="privilege:${allPrivilege}">
            <td><input type="checkbox"></td>
            <th th:text="${privilege.name}"></th>
            <span th:each="function:${allFunction.get(privilege.pid)}">
                <td><input type="checkbox"></td>
            <td th:text="${function.name}"></td>
            </span>
        </tr>
    </table>
</body>
</html>